Leetcode 1129. Shortest Path With Alternating Colors Explanation And Solution